package com.hut.oa.service;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hut.oa.model.dao.file.DirectoryDao;


@Service
@Transactional
public class DirectoryService {

	@Autowired
	DirectoryDao dirdao;
	
	public void updatename(String id,String name){
		dirdao.updatenewname(Long.parseLong(id), name);
	}
	public int delete(Long id){
		return dirdao.updateid(id);
	}
	
}
